package pl.rzarajczyk.utils.os;

/**
 *
 * @author rafalz
 */
public class OperatingSystem {
    
    static void setSystemProperty(String value) {
        System.setProperty("os.name", value);
    }

    public static boolean isWindows() {
        String os = System.getProperty("os.name").toLowerCase();
        return os.contains("win");
    }

    public static boolean isMac() {
        String os = System.getProperty("os.name").toLowerCase();
        return os.contains("mac");
    }

    public static boolean isUnix() {
        String os = System.getProperty("os.name").toLowerCase();
        return os.contains("nix") || os.contains("nux");
    }
    
}
